package apiday05home;

import java.io.File;
import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入目录");
        String list = scan.nextLine();
        File dir = new File("./" + list);
        if(dir.exists()){
            System.out.println("目录已存在");
        }
        dir.delete();
        System.out.println("已删除存在的目录");

    }
}
